import request from '@/utils/request'

// 获取家长列表数据
export function get_select(data) {
  return request({
    url: 'user/import_parent/get_select',
    method: 'post',
    params: data
  })
}
// 获取家长列表数据 分页
export function getList(data) {
  return request({
    url: 'user/import_parent/get_list',
    method: 'post',
    params: data
  })
}
// 根据ID获取家长导入的指定记录
export function info(data) {
  return request({
    url: 'user/import_parent/info',
    method: 'post',
    params: data
  })
}

// 根据ID更新家长导入指定记录的数据
export function edit(token, data) {
  return request({
    url: 'user/import_parent/edit',
    method: 'post',
    params: { token },
    data: data
  })
}

// 批量导入家长数据
export function import_info(token, data) {
  return request({
    url: '/user/import_parent/import',
    method: 'post',
    params: { token },
    data: data
  })
}
// 按条件删除记录
export function delete_info(token, id) {
  return request({
    url: '/user/import_parent/delete',
    method: 'post',
    params: { token },
    data: id
  })
}

// 发送信息
export function send_msg(token, data) {
  return request({
    url: '/user/import_parent/send_msg',
    method: 'post',
    params: { token },
    data: data
  })
}
